import { LoginResult } from '@/types/login'
import { defineStore } from 'pinia'

export const usePermissionStore = defineStore({
  id: 'permission',
  state: () => ({
    authData:{
      permissions: [''],
      token: ''
    }
  }),
  persist: true,
  actions: {
    setData(payLoad: LoginResult) {
      this.authData = payLoad
    }
  }
})

